FUNCTION

extract_account_id

function extract_account_id(auth_op: gtx_operation): byte_array

Extracts the account ID passed to the auth operation, which is any operation supported by is_auth_op.

Throws "INVALID AUTH OP" if the operation passed is not an auth operation

Throws "INVALID AUTH ARGS" if the auth operation passed has no arguments

Parameters

  • auth_op — the operation to extract the ID from
© 2024 Chromia